tests/installed: Make reboot task less racy
authorColin Walters <walters@verbum.org>
Thu, 19 Apr 2018 19:53:58 +0000 (15:53 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 23 Apr 2018 17:23:40 +0000 (17:23 +0000)
commite5f6c9d1e2266a3c7bc523a432aa164123048bf0
tree2db703b48ad2f6402aa256d5c14c663c3105bb5a
parent972a1921f517f5b2ae0aafed42224161fb4bb6d8
tests/installed: Make reboot task less racy

This took a whole lot of experimentation.  I hit upon the idea
of doing a `systemctl stop sshd` to avoid the situation where we
might ssh back into the system while it's in the process of shutting
down.

Ultimately the other fix is disabling `ControlMaster`; see
for example: https://github.com/ansible/ansible/issues/17935

Closes: #1548
Approved by: cgwalters
tests/installed/playbook-run.sh
tests/installed/tasks/reboot.yml